package org.goldenport.g3.adapters

import scala.xml.{XML, Elem}
import java.io._
import java.net.URL
import org.goldenport.g3._
import org.goldenport.g3.messages._
import org.goldenport.g3.events.file._
import com.asamioffice.goldenport.io.{UFile, UURL, UIO}
import com.asamioffice.goldenport.text.UPathString.concatPathname

/**
 * @since   Sep. 21, 2010
 * @version Oct.  9, 2010
 * @version Dec.  3, 2011
 * @author  ASAMI, Tomoharu
 */
class PortAdapter(val uri: String, val description: Option[Description]) extends G3Adapter {
  override protected def do_Action(content: AnyRef, parcel: G3Parcel, ctx: G3AgentContext): AnyRef = {
    content match {
      case cmd: RestCommand => cmd.consume(uri)
      case _ => content
    }
  }
}
